#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
	char ch[80];
	int i = 0;
	int len = 0;
	int middle = 0;
	gets(ch);
	len = strlen(ch);
	for (i = 0; i < len; i++,middle++)
	{
		if (ch[i + 1] == '\0')
		{
			break;
		}
		if (ch[i] > ch[i + 1])
		{
			printf("err!!\n");
			break;
		}
	}
	if (middle == len-1)
		printf("right!!\n");
	return 0;
}